ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Common Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / ReportParameter Class / ReportParameter Constructor / ReportParameter Constructor(String,ICollection<Object>)
The name of the report parameter.
The collection of values for the report parameter.
Example

In This Topic
    ReportParameter Constructor(String,ICollection<Object>)
    In This Topic
    Initializes a new instance of the ReportParameter class with multiple values. This snippet shows how to create a new ReportParameter. List<object> values = new List<object> { 1, 2, 3, "Hello", DateTime.Now }; ReportParameter parameter = new ReportParameter("MyParameter", values);
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal name As String, _
       ByVal values As ICollection(Of Object) _
    )
    public ReportParameter( 
       string name,
       ICollection<object> values
    )

    Parameters

    name
    The name of the report parameter.
    values
    The collection of values for the report parameter.
    Example
    This snippet shows how to create a new ReportParameter.
    List<object> values = new List<object> { 1, 2, 3, "Hello", DateTime.Now };
    ReportParameter parameter = new ReportParameter("MyParameter", values);
    See Also